import { createRouter, createWebHashHistory } from 'vue-router'
// import customer from './modules/customer/index'
// import user from './modules/user/index'
// import project from './modules/project/index'
// import financialAffairs from './modules/financialAffairs/index'
// import humanAffairs from './modules/humanAffairs/index'
import routeGuard from './guard'
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/login',
      name: 'login', 
      component: () => import('@/view/Login/index.vue')
    },
    {
      path: '/404',
      name: 'error404', 
      component: () => import('@/view/Error404/index.vue')
    },
    // {
    //   path: '/',
    //   name: 'Layout', 
    //   redirect: '/user',
    //   component: () => import('@/view/Layout/index.vue'),
    //   children: []
    // },
  ],
})
routeGuard(router)
export default router